{if !$smarty.const.MAINTENANCE}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
	<head>
        <link rel="author" href="humans.txt" />
		<title>{$webTitle}</title>
		<base href="{$smarty.const.__WEB_ROOT}" >
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
        {foreach item=meta from=$view->getMetaTags()}
        <meta name="{$meta.name}" content="{$meta.content}" http-equiv="{$meta.http-equiv}" >
        {/foreach}
		{foreach item=css from=$view->getStyles()}
		<link rel="stylesheet" href="styles/{$css.href}" type="text/css" media="{if isset($css.media)}{$css.media}{else}screen{/if}" >
		{/foreach}
		{foreach item=js from=$view->getScripts()}
		<script type="text/javascript" src="{if $js.webpath==true}javascript/{/if}{$js.src}"></script>
		{/foreach}
		<!--[if lt IE 8]>
		<script src="javascript/ie7/IE7.js" type="text/javascript"></script>
		<link rel="stylesheet" href="styles/{$smarty.const.WEBTHEME}/ielt8.css" type="text/css" />
		<![endif]-->
	</head>
	<body>
		<div id="all_content">
		{if $view->getBlankPage()}
			{assign var="service" value=$view->service}
			{include file="$service.tpl"}
		{else}
			{include file="body.tpl"}
		{/if}
		</div>
	</body>
</html>
{else}
{include file="maintenance.tpl"}
{/if}